import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from "element-plus/es/locale/lang/zh-cn";
import App from './App.vue'
//如果您正在使用CDN31入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Login from '@/components/Login.vue'
import {router} from "@/router/index.js";

// 入口
// const app = createApp(Login)
const app = createApp(App)
// 加载路由
app.use(router)

app.use(ElementPlus,{
    local:zhCn,
})

//动态加载图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')